package com.liam.lotterysystem.service.dto;

import com.liam.lotterysystem.service.enums.ActivityStatusEnum;
import lombok.Data;

/**
 * @Author: LiamLMK
 * @CreateTime: 2024-10-26
 * @Description:
 * @Version: 1.0
 */

@Data
public class ActivityDTO {
    /**
     * 活动Id
     */
    private Long activityId;
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动描述
     */
    private String description;
    /**
     * 活动状态
     */
    private ActivityStatusEnum status;

    /**
     * 活动是否有效
     * @return
     */
    public Boolean valid() {
        return status.equals(ActivityStatusEnum.RUNNING);
    }
}
